﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;
using Model;

namespace DAL
{
    public class SysDbContext : MyDbContext
    {
        public SysDbContext(string connectionString) : base(connectionString) { }

        public DbSet<SysMenu> Menus { get; set; }
        public DbSet<SysRole> Roles { get; set; }
        public DbSet<SysPermission> Permissions { get; set; }
        public DbSet<SysUserRole> UserRoles { get; set; }
        public DbSet<UserInfo> Users { get; set; }
    }
}
